package com.mydemo.likedy.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mydemo.likedy.pojo.entity.Favorites;

import java.util.List;

public interface FavoritesService extends IService<Favorites> {
    List<Favorites> listByUserId(Long userId);

    void remove(Long id, Long userId);

    void exist(Long userId, Long defaultFavoritesId);

    /**
     * 收藏状态
     * @param videoId
     * @param userId
     * @return
     */
    Boolean favoritesState(Long videoId, Long userId);

    /**
     * 收藏视频
     * @param fId
     * @param vId
     */
    boolean favorites(Long fId, Long vId);

    /**
     * 获取收藏夹下的所有视频id
     * @param favoritesId
     * @param userId
     * @return
     */
    List<Long> listVideoIds(Long favoritesId,Long userId);
}
